namespace two {
    export class WebViewUI extends eui.Group {
        private webview:one.WebView;
        
		public constructor() {
			super();

            this.webview = new one.WebView();
            this.addChild(this.webview);
		}

        protected updateDisplayList(unscaledWidth: number, unscaledHeight: number): void {
            super.updateDisplayList(unscaledWidth, unscaledHeight);

            this.webview.width = unscaledWidth;
            this.webview.height = unscaledHeight;
        }

		private _src : string;
		public get src() : string {
			return this._src;
		}
		public set src(v : string) {
			this._src = v;
			this.webview.src = v;
		}
    }
}